package com.ibp.converter;

import org.springframework.core.convert.converter.Converter;

import com.ibp.utils.StringUtil;

/***
 * 
 * 转换器，空字符串""转换为null
 * @author yf141
 *
 */


public class String2StringConverter implements Converter<String, String> {

	public String convert(String source) {
		if(StringUtil.isEmpty(source)){
			return null ;
		}else{
			return source;
		}
	}



}
